package com.google.code.whitetask;

import java.util.concurrent.ExecutorService;

public class ParallelExecutionClause extends Clause {
  public ParallelExecutionClause(Task task) {
    super(task);
  }

  public ParallelExecutionClause using(ExecutorService executor) {
    ParallelChainTask parallelChainTask = (ParallelChainTask)super.getTask();
    parallelChainTask.setExecutor(executor);
    return this;
  }
}
